﻿using QMERP.SeedWork;

namespace QMERP.Domain.Entities
{
    /// <summary>
    /// 盘点详情
    /// </summary>
    public partial class InventoryOrderDetail : Entity
    {
        public InventoryOrderDetail() 
        {
            InventoryOrderDetail_LensDetails = new HashSet<InventoryOrderDetail_LensDetail>();
        }
        /// <summary>
        /// 盘点单Id
        /// </summary>
        public long InventoryOrderId { get; set; }
        /// <summary>
        /// 仓库Id
        /// </summary>
        public long WarehouseId { get; set; }
        /// <summary>
        /// 镜种Id
        /// </summary>
        public long LensId { get; set; }

        /// <summary>
        /// 盘点单
        /// </summary>
        public virtual InventoryOrder? InventoryOrder { get; set; }
        /// <summary>
        /// 仓库
        /// </summary>
        public virtual Warehouse? Warehouse { get; set; }
        /// <summary>
        /// 镜种
        /// </summary>
        public virtual Lens? Lens { get; set; }
        /// <summary>
        /// 盘点单详情的镜种详情列表
        /// </summary>
        public virtual ICollection<InventoryOrderDetail_LensDetail> InventoryOrderDetail_LensDetails { get; set; }
    }
}
